﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Web.Framework;
using System.Web.Security;

namespace Web.CrmContacto
{
    public partial class _Default : System.Web.UI.Page
    {       
        protected void Page_Load(object sender, EventArgs e)
        {
            bool redirect = true;
            // Analizo la sesión activa
            try
            {
                if (BaseWebPage.CompanyId != 0)
                {
                }
            }
            catch
            {
                redirect = false;
            }

            if (!redirect)
            {
                FormsAuthentication.SignOut();
            }        

            Response.Redirect("/App/CustomerSearch.aspx", true);
        }
    }
}
